import * as network from '@/utils/request';
import { pickUpWhiteList } from '../../config/Apis';

export async function getPickupFreeList(params: any): Promise<any> {
    return network.post(pickUpWhiteList.pickupFreeList, {
        data: params,
        requestType: 'form'
    });
}

export async function getPickUpFreeDetail(params: any): Promise<any> {
    return network.post(pickUpWhiteList.pickupFreeDetail, {
        data: params,
        requestType: 'form'
    });
}

export async function pickupFreeCreate(params: any): Promise<any> {
    return network.post(pickUpWhiteList.pickupFreeCreate, {
        data: params,
        requestType: 'form'
    });
}

export async function pickupFreeUpdate(params: any): Promise<any> {
    return network.post(pickUpWhiteList.pickupFreeUpdate, {
        data: params,
        requestType: 'form'
    });
}

export async function pickupFreeDelete(params: any): Promise<any> {
    return network.post(pickUpWhiteList.pickupFreeDelete, {
        data: params,
        requestType: 'form'
    });
}

export async function pickupFreeDisable(params: any): Promise<any> {
    return network.post(pickUpWhiteList.pickupFreeDisable, {
        data: params,
        requestType: 'form'
    });
}

export async function pickupFreeEnable(params: any): Promise<any> {
    return network.post(pickUpWhiteList.pickupFreeEnable, {
        data: params,
        requestType: 'form'
    });
}